import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import 'element-plus/dist/index.css'
import ElementPlus from 'element-plus'
import '@/assets/global.css'
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
const app = createApp(App)
app.use(ElementPlus, {
  locale: zhCn,
})


app.use(router)

app.mount('#app')
//全局导入图标
for(const [key, component] of Object.entries(ElementPlusIconsVue)){
    app.component(key, component)
}
